package com.org.manhu.chargehelper.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.TextView;

/**
 * @文件名：UpdateNickNameReceiver.java
 * @包名：com.org.manhu.chargehelper.broadcastreceiver
 * @作者：李朋辉 @QQ：892839211
 * @创建时间：2015年2月11日 下午4:44:40
 *
 * @描述：用户修改昵称成功后，用来修改用户昵称的广播
 */
public class UpdateNickNameReceiver extends BroadcastReceiver {

	private TextView nickNameTv;

	public UpdateNickNameReceiver(TextView tv) {
		this.nickNameTv = tv;
	}

	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO Auto-generated method stub
		String nickName = intent.getStringExtra("nickName");
		this.nickNameTv.setText(nickName);
		Log.d("TAG", "更新名称"+nickName);
	}

}
